package com.zwj.design.creating.factory.buttons;

/**
 * 具体产品
 *
 * @author 张文接
 * @version 1.0
 * @createTime 2024/3/11 14:42
 */
public class HtmlButton implements Button {
    @Override
    public void render() {
        System.out.println("<button>Test Button</button>");
        onClick();
    }

    @Override
    public void onClick() {
        System.out.println("Click! Button says - 'Hello world'");
    }
}
